import newRequest from '@/utils/newRequest'
import { mergeParams } from '@/utils'

// 分页质量考核计划-查询
export function getExaminationPlan(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhExaminationPlan/doQueryPage',
    method: 'post',
    data
  })
}

export function addExaminationPlan(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhExaminationPlan/doSave',
    method: 'post',
    data
  })
}

// 关闭
export function closeExaminationPlan(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhExaminationPlan/doClose',
    method: 'post',
    data
  })
}

// 删除
export function delExaminationPlan(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhExaminationPlan/doDelete',
    method: 'delete',
    data
  })
}
